import request from '@/utils/request'

 //API常量
 const APIS = {
  V1: "/v1"
}

export function findByProjectId(params) {
  return request({
    url: APIS.V1+`/system/review/findByProjectId`,
    method: 'get',
    params:params
  })
}

export function editReview(data) {
  return request({
    url: APIS.V1+`/system/review/edit`,
    method: 'post',
    data
  })
}

export function exportReview(params) {
  return request({
    url: APIS.V1+`/system/project/credit/export`,
    method: 'get',
    params: params,
    responseType: 'blob'
  })
}

export function editReviewNew(data) {
  return request({
    url: APIS.V1+`/system/due/saveOrUpdate`,
    method: 'post',
    data
  })
}

export function findByProjectIdNewReview(params){
  return request({
    url: APIS.V1+`/system/due/findByProjectId`,
    method: 'get',
    params:params
  })
}

export function exportReviewNew(params) {
  return request({
    url: APIS.V1+`/system/due/export`,
    method: 'get',
    params: params
  })
}
